#include "PhidgetPropertyAlias.h"


//
// Initialize a blank, empty, property alias.
//
PhidgetPropertyAlias::PhidgetPropertyAlias()
{
}


//
// Initialize a new Phidget Property Alias with the specified information.
//
PhidgetPropertyAlias::PhidgetPropertyAlias(int deviceSerial, std::string property, std::string alias)
{
	_deviceSerial = deviceSerial;
	_property = property;
	_alias = alias;
}


//
// Initialize a new Phidget Property Alias with the specified information.
//
PhidgetPropertyAlias::PhidgetPropertyAlias(int deviceSerial, std::string property, std::string alias, std::string translator)
{
	_deviceSerial = deviceSerial;
	_property = property;
	_alias = alias;
	_translator = translator;
}


//
// Get the (local) device serial number that this property resides on.
//
int PhidgetPropertyAlias::GetDeviceSerial()
{
	return _deviceSerial;
}


//
// Get the physical property name of this alias.
//
std::string PhidgetPropertyAlias::GetProperty()
{
	return _property;
}


//
// Get the short alias name of this property.
//
std::string PhidgetPropertyAlias::GetAlias()
{
	return _alias;
}


//
// Get the translator javascript code to translate this value.
//
std::string PhidgetPropertyAlias::GetTranslator()
{
	return _translator;
}

